package ecode

import (
	"github.com/zhufuyi/sponge/pkg/errcode"
)

// tkAd http service level error code
// each resource name corresponds to a unique number (http type), the number range is 1~100, if there is the same number, trigger panic
var (
	tkAdNO       = 29
	tkAdName     = "tkAd"
	tkAdBaseCode = errcode.HCode(tkAdNO)

	ErrCreateTkAd      = errcode.NewError(tkAdBaseCode+1, "failed to create "+tkAdName)
	ErrDeleteByIDTkAd  = errcode.NewError(tkAdBaseCode+2, "failed to delete "+tkAdName)
	ErrDeleteByIDsTkAd = errcode.NewError(tkAdBaseCode+3, "failed to delete by batch ids "+tkAdName)
	ErrUpdateByIDTkAd  = errcode.NewError(tkAdBaseCode+4, "failed to update "+tkAdName)
	ErrGetByIDTkAd     = errcode.NewError(tkAdBaseCode+5, "failed to get "+tkAdName+" details")
	ErrListByIDsTkAd   = errcode.NewError(tkAdBaseCode+6, "failed to list by batch ids "+tkAdName)
	ErrListTkAd        = errcode.NewError(tkAdBaseCode+7, "failed to list of "+tkAdName)
	// error codes are globally unique, adding 1 to the previous error code
)
